package com.css.dzj.dzjdzqs.modules.datafromzfjg.entity;

import javax.persistence.*;
import java.util.Objects;

//联合监管检查对象表
@Entity
@Table(name = "JG_LHJG_JCDX", schema = "DZJJH", catalog = "")
public class JgLhjgJcdxEntity {
    private String taskno;//联合监管任务ID
    private String objectName;//检查对象名称
    private String enterpriseCreditcode;//检查对象统一社会信用代码
    private String superviseObjectType;//监管对象类型
    private String id;//主键ID

    @Basic
    @Column(name = "taskno")
    public String getTaskno() {
        return taskno;
    }

    public void setTaskno(String taskno) {
        this.taskno = taskno;
    }

    @Basic
    @Column(name = "object_name")
    public String getObjectName() {
        return objectName;
    }

    public void setObjectName(String objectName) {
        this.objectName = objectName;
    }

    @Basic
    @Column(name = "enterprise_creditcode")
    public String getEnterpriseCreditcode() {
        return enterpriseCreditcode;
    }

    public void setEnterpriseCreditcode(String enterpriseCreditcode) {
        this.enterpriseCreditcode = enterpriseCreditcode;
    }

    @Basic
    @Column(name = "supervise_Object_Type")
    public String getSuperviseObjectType() {
        return superviseObjectType;
    }

    public void setSuperviseObjectType(String superviseObjectType) {
        this.superviseObjectType = superviseObjectType;
    }

    @Id
    @Column(name = "Id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgLhjgJcdxEntity that = (JgLhjgJcdxEntity) o;
        return Objects.equals(taskno, that.taskno) &&
                Objects.equals(objectName, that.objectName) &&
                Objects.equals(enterpriseCreditcode, that.enterpriseCreditcode) &&
                Objects.equals(superviseObjectType, that.superviseObjectType) &&
                Objects.equals(id, that.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(taskno, objectName, enterpriseCreditcode, superviseObjectType, id);
    }
}
